package com.tian.print.http.error;

/**
 * Description:异常
 * <br>Author：tian
 * <br>Time: 2019/5/24 11:33
 */
public class ApiException extends Exception{

    private int code;
    private String errorMsg;

    public ApiException(int code, String errorMsg) {
        this.code = code;
        this.errorMsg = errorMsg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }
}
